package com.study.demo.gsbean.demo3;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * lookup-method
 * 把一个方法声明为返回某种类型的bean, 但实际要返回的bean是在配置文件里面配置的,
 * 此方法可用在设计有些可插拔的功能上, 解除程序依赖
 * @author: elvin
 * @time: 2019-01-18 11:09
 * @desc:
 **/
public class Start3 {
	public static void main(String[] args){
		ApplicationContext bf = new ClassPathXmlApplicationContext("demo3/application.xml");
		GetBeanTest test = (GetBeanTest) bf.getBean("getBeanTest");
		test.showMe();
	}
}
